//公共请求的方法
import base from './base';
import request from '@/utils/request';
const api = {
    login(params){
        return request({
            url:base.login,
            method:'post',
            data:JSON.stringify(params)
        }          
        )
    },
     user_list(params){
        return request({
            url:base.user_list,
            method:'post',
            data:JSON.stringify(params)
        }          
        );
    },
    user_save(params){
        return request({
            url:base.user_save,
            method:'post',
            data:JSON.stringify(params)
        }          
        );
    },
    user_delete(id){
        return request({
            url:base.user_delete_by_id+id,
            method:'post',
        })
    },
    user_update_pwd(params){
        console.log(base.user_update_pwd)
        return request({
            url:base.user_update_pwd,
            method:'post',
            data:JSON.stringify(params)
        })
    }

}

export default  api;